package com.ranyk.www.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;

/**
 * CLASS_NAME: RoleMenu.java <br/>
 *
 * @author ranyk           <br/>
 * @version V1.0           <br/>
 * @decription: cms_role_menu 数据表实体类  <br/>
 * @date: 2022-04-03 <br/>
 */
@Data
@TableName("cms_role_menu")
@EqualsAndHashCode(callSuper = true)
public class RoleMenu extends Model<RoleMenu> {


	@Serial
	private static final long serialVersionUID = -6347276277071471123L;

	/**
     * 角色权限编号
     */
	@TableId(value="role_menu_id", type= IdType.AUTO)
	private Long roleMenuId;
    /**
     * 角色编号
     */
	@TableField("role_id")
	private Long roleId;
    /**
     * 权限编号
     */
	@TableField("menu_id")
	private Long menuId;
    /**
     * 创建时间
     */
	@TableField("create_time")
	private Date createTime;
    /**
     * 创建者
     */
	@TableField("create_by")
	private String createBy;

	@Override
	public Serializable pkVal() {
		return this.roleMenuId;
	}

}
